gametheory
Class GenerateRecursiveList

java.lang.Object
  extended by gametheory.GenerateRecursiveList

public class GenerateRecursiveList
extends java.lang.Object

Generates the full enumeration of all possible outcomes, given a number of players and a number of actions they can choose. This class recursively calls itself until the entire set of possibilities is exhausted, and then returns an ArrayList.


Constructor Summary
GenerateRecursiveList(int currentPlayer)
          Recursive method to construct the set of outcomes.
GenerateRecursiveList(int numPlayers, int numActions)
          Creates a new instance of GenerateRecursiveList
 
Method Summary
 java.util.ArrayList<Jama.Matrix> getCombinations()
          Obtain the combinatoric list of outcomes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateRecursiveList

public GenerateRecursiveList(int numPlayers,
                             int numActions)
Creates a new instance of GenerateRecursiveList

Parameters:
numPlayers - Number of players.
numActions - Number of actions.

GenerateRecursiveList

public GenerateRecursiveList(int currentPlayer)
Recursive method to construct the set of outcomes.

Parameters:
currentPlayer - Index of the current update.
Method Detail

getCombinations

public java.util.ArrayList<Jama.Matrix> getCombinations()
Obtain the combinatoric list of outcomes.

Returns:
The list of possible combinations of actions.